basic javascript find the length of a string